package com.example.lanouhn.firstapp.activity.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.lanouhn.firstapp.R;

//我的虚拟订单页面
public class MyVirtualOrdersActivity extends AppCompatActivity {

    private ImageView imageView;
    //关于我们--跳转
    private TextView tv_aboutOur;
    //免责声明
    private TextView tv_disclaimer;
    //商务合作
    private TextView tv_cooperate;
    //帮助中心
    private TextView tv_help;
    //注销
    private TextView tv_cancellation;
    //返回
    private  ImageView iv_back;
    //个人中心
    private TextView mineCenter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_virtual_orders);


        //找到控件
        initView();
        //监听事件
        initEvent();
    }

    private void initEvent() {
//关于我们--的点击事件
        tv_aboutOur.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MyVirtualOrdersActivity.this,AboutOurActivity.class);
                startActivity(intent);
            }
        });

        //免责声明--点击事件
        tv_disclaimer.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MyVirtualOrdersActivity.this, DisclaimerActivity.class);
                startActivity(intent);
            }
        });
        //商务合作--点击事件
        tv_cooperate.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MyVirtualOrdersActivity.this, CooperateActivity.class);
                startActivity(intent);
            }
        });
        //帮助中心--点击事件
        tv_help.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MyVirtualOrdersActivity.this, HelpActivity.class);
                startActivity(intent);
            }
        });

        //注销--点击事件
        tv_cancellation.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MyVirtualOrdersActivity.this, LoginActivity.class);
                startActivity(intent);
            }
        });
        //个人中心--点击事件
        mineCenter.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        iv_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });


    }

    private void initView() {

        mineCenter= (TextView) findViewById(R.id.mineCenter);
        iv_back= (ImageView) findViewById(R.id.iv_back);

        //绑定控件
        tv_aboutOur = (TextView)findViewById(R.id.mine_aboutOur);
        tv_disclaimer = (TextView)findViewById(R.id.mine_disclaimer);
        tv_cooperate = (TextView)findViewById(R.id.mine_cooperate);
        tv_help = (TextView)findViewById(R.id.mine_help);
        tv_cancellation = (TextView)findViewById(R.id.mine_cancellation);

    }
}
